﻿using RearLivestock.Common.Domains.Common;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RearLivestock.Common.Domains.hhx
{
    /// <summary>
    /// 公猪初期
    /// </summary>
    public class Infancies : BaseEntity
    {
        /// <summary>
        /// 公猪初期
        /// </summary>
        [Key]
        public int InfancieId { get; set; }
        /// <summary>
        /// 单据号
        /// </summary>
        [StringLength(100)]
        public string DocumentNumber { get; set; } = string.Empty;
        /// <summary>
        /// 流水号
        /// </summary>
        [StringLength(100)]
        public string SerialNumber { get; set; } = string.Empty;
        /// <summary>
        /// 期初日期
        /// </summary>
        public DateTime? OpeningDate { get; set; }
        /// <summary>
        /// 基本信息Id(耳号)
        /// </summary>
        public int BasicInforId { get; set; }
        /// <summary>
        /// 栋舍id
        /// </summary>
        public int BedroomId { get; set; }
        /// <summary>
        /// 栏位id
        /// </summary>
        public int FieldId { get; set; }
        /// <summary>
        /// 只数 默认唯一
        /// </summary>
        public int PigNumber { get; set; } = 1;
        /// <summary>
        /// 体重(公斤)
        /// </summary>
        public int Weight { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsInfancies { get; set; }
    }
}
